include_directories (${GLUT_INCLUDE_DIR})

file (GLOB sources "*.cpp")

add_executable (difftiff ${sources})

link_directories("/usr/lib/aarch64-linux-gnu")

target_link_libraries (difftiff
	dsurf
	lex
	image
	stats
	timer
	${TIFF_LIBRARY}
	${GLUT_glut_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${OPENGL_gl_LIBRARY}
        X11
)

if (WIN32)
	target_link_libraries (difftiff
		gdi32
		user32
		kernel32
	)
elseif (APPLE)
	target_link_libraries (difftiff
		${CARBON_LIBRARY}
	)
else ()
	target_link_libraries (difftiff
		${X11_X11_LIB}
	)
endif ()
